import request from "@/utils/request";

// 查询班级信息列表
export function listInfclass(query) {
  return request({
    url: "/web/class/list",
    method: "get",
    params: query,
  });
  // return request({
  //   url: "/system/user/" + parseStrEmpty(userId),
  //   method: "get",
  // });
}

// 新增班级信息
export function addInfclass(data) {
  return request({
    url: "/web/class",
    method: "post",
    data: data,
  });
}

// 修改班级信息
export function updateInfclass(data) {
  return request({
    url: "/web/class",
    method: "put",
    data: data,
  });
}

// 删除班级信息
export function delInfclass(id) {
  return request({
    url: "/web/class/" + id,
    method: "delete",
  });
}

// 根据角色代码查询用户
export function getrole(query)  {
  return request({
    url: "/system/role/authUser/allocatedList",
    method: "get",
    params: query
  });
}